import request from '@/utils/request'

// 知识管理文件夹树
export function getDocumentDirectoryTree() {
  return request({
    url: '/api/repository/companyDocumentDirectory/getCompanyDocumentDirectoryTree',
    method: 'post'
  })
}
// 删除文件夹
export function deleteDocumentDirectory(params) {
  return request({
    url: '/api/repository/companyDocumentDirectory/deleteCompanyDocumentDirectory',
    method: 'post',
    params
  })
}
// 新增文件夹
export function addDocumentDirectory(data) {
  return request({
    url: '/api/repository/companyDocumentDirectory/addCompanyDocumentDirectory',
    method: 'post',
    data
  })
}
// 修改文件夹
export function updateDocumentDirectory(data) {
  return request({
    url: '/api/repository/companyDocumentDirectory/updateCompanyDocumentDirectory',
    method: 'post',
    data
  })
}
// 新增文档
export function addDocumentDetail(data) {
  return request({
    url: '/api/repository/companyDocumentDetail/addCompanyDocumentDetail',
    method: 'post',
    data
  })
}
export function updateDocumentDetail(data) {
  return request({
    url: '/api/repository/companyDocumentDetail/updateCompanyDocumentDetail',
    method: 'post',
    data
  })
}

// 文档列表
export function getDocumentDetailList(data) {
  return request({
    url: '/api/repository/companyDocumentDetail/getCompanyDocumentDetailList',
    method: 'post',
    data
  })
}

export function getCompanyDocumentOperateList(data) {
  return request({
    url: '/api/repository/companyDocumentOperate/getCompanyDocumentOperateList',
    method: 'post',
    data
  })
}

export function deleteDocumentDetail(params) {
  return request({
    url: '/api/repository/companyDocumentDetail/deleteCompanyDocumentDetail',
    method: 'post',
    params
  })
}
export function getDocumentDetailDetail(params) {
  return request({
    url: '/api/repository/companyDocumentDetail/getCompanyDocumentDetailDetail',
    method: 'post',
    params
  })
}

// 我的文档目录
export function addMineDocumentDirectory(data) {
  return request({
    url: '/api/repository/mineDocumentDirectory/addMineDocumentDirectory',
    method: 'post',
    data
  })
}
export function deleteMineDocumentDirectory(params) {
  return request({
    url: '/api/repository/mineDocumentDirectory/deleteMineDocumentDirectory',
    method: 'post',
    params
  })
}
export function getMineDocumentDirectoryDetail(params) {
  return request({
    url: '/api/repository/mineDocumentDirectory/getMineDocumentDirectoryDetail',
    method: 'post',
    params
  })
}
export function getMineDocumentDirectoryList(params) {
  return request({
    url: '/api/repository/mineDocumentDirectory/getMineDocumentDirectoryList',
    method: 'post',
    params
  })
}
export function getMineDocumentDirectoryTree(params) {
  return request({
    url: '/api/repository/mineDocumentDirectory/getMineDocumentDirectoryTree',
    method: 'post',
    params
  })
}
export function updateMineDocumentDirectory(data) {
  return request({
    url: '/api/repository/mineDocumentDirectory/updateMineDocumentDirectory',
    method: 'post',
    data
  })
}
export function addMineDocumentDetail(data) {
  return request({
    url: '/api/repository/mineDocumentDetail/addMineDocumentDetail',
    method: 'post',
    data
  })
}
export function deleteMineDocumentDetail(params) {
  return request({
    url: '/api/repository/mineDocumentDetail/deleteMineDocumentDetail',
    method: 'post',
    params
  })
}
export function getMineDocumentDetailDetail(params) {
  return request({
    url: '/api/repository/mineDocumentDetail/getMineDocumentDetailDetail',
    method: 'post',
    params
  })
}
export function getMineDocumentDetailList(data) {
  return request({
    url: '/api/repository/mineDocumentDetail/getMineDocumentDetailList',
    method: 'post',
    data
  })
}
export function updateMineDocumentDetail(data) {
  return request({
    url: '/api/repository/mineDocumentDetail/updateMineDocumentDetail',
    method: 'post',
    data
  })
}
export function addCompanyDocumentOperate(params) {
  return request({
    url: '/api/repository/companyDocumentOperate/addCompanyDocumentOperate',
    method: 'post',
    params
  })
}
